package cn.edu.usst.cs.goldfish.booking.meetingroom.interceptor;

import jakarta.servlet.http.*;
import lombok.*;
import org.springframework.context.annotation.Configuration;

@Configuration
public class KeepAliveInterceptor extends ApiInterceptor{
    @Override
    public boolean preHandle(
            @NonNull HttpServletRequest request,
            @NonNull HttpServletResponse response,
            @NonNull Object handler
    ) {
        processResponse(response, HttpServletResponse.SC_OK, "ok");
        return false;
    }
}
